﻿using System.ComponentModel.Composition;
using Login.Views;
using Microsoft.Practices.Prism.MefExtensions.Modularity;
using Microsoft.Practices.Prism.Modularity;
using Microsoft.Practices.Prism.Regions;

namespace Login
{
    [ModuleExport(typeof(HierarchyModule))]
    class HierarchyModule : IModule
    {

        [Import]
        private IRegionManager _regionManager;
        public void Initialize()
        {
            _regionManager.RegisterViewWithRegion(HierarchyRegionNames.MenuRegion, typeof(MenuView));
            _regionManager.RegisterViewWithRegion(HierarchyRegionNames.ToolRegion, typeof(ToolBar));
            _regionManager.RegisterViewWithRegion(HierarchyRegionNames.DockingRegion, typeof(LeftListPane));
            _regionManager.RegisterViewWithRegion(HierarchyRegionNames.DockingRegion, typeof(RightPane));
            _regionManager.RegisterViewWithRegion(HierarchyRegionNames.DockingRegion, typeof(BottomPane));
        }
    }
}
